package com.vinjogames.som.entities;

import java.util.ArrayList;

/**
 *
 * CollisionObject represents an ArrayList of line segments and a bounding box with x/y minimums and maximums.
 * This class is used to determine if a moveable object has collided with it.
 * 
 * @author Joey Jones
 *
 */
public class CollisionObject {
	private static final int MIN_SEGMENTS = 4;
	
	protected ArrayList<LineSegment> segments;
	protected float xMin;
	protected float xMax;
	protected float yMin;
	protected float yMax;
	
	public CollisionObject() {
		this(MIN_SEGMENTS);
	}
	
	public CollisionObject(int count) {
		segments = new ArrayList<LineSegment>(count);
	}
	
	//To do simple culling check based upon direction.
	
	
	public boolean checkCollisionEast(LineSegment s) {
		return false;
	}
	
	public boolean checkCollisionSouth(LineSegment s) {
		return false;
	}
	
	public boolean checkCollisionNorth(LineSegment s) {
		return false;
	}
	
	public boolean checkCollisionWest(LineSegment s) {
		return false;
	}
}

